home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Found / FWString / Include / PRCharIt.h < prev    next >
Encoding:
Text File  |  1996-04-25  |  1.9 KB  |  56 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                PRCharIt.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef PRCHARIT_H
  11. #define PRCHARIT_H
  12.  
  13. #ifndef SOM_Module_ODFStringSubsystemTypes_defined
  14. #include "FWTxtTyp.xh"
  15. #endif
  16.  
  17. //========================================================================================
  18. //    Forward Declarations
  19. //========================================================================================
  20.  
  21. class FW_OTextRunReader;
  22. class FW_OTextRunWriter;
  23.  
  24. //========================================================================================
  25. //    STRUCT FW_SPrivTextReader
  26. //========================================================================================
  27.  
  28. struct FW_SPrivTextReader
  29. {
  30.     FW_OTextRunReader*     fReader;
  31.     const char*            fStart;            // Start of current run
  32.     const char*            fLimit;            // One past last byte of current run
  33.     const char*            fNext;            // Current position in run
  34.     FW_ByteCount        fByteLength;    // Total bytes in data structure.
  35.     FW_ByteCount        fBufferSum;        // Total bytes in previous buffers.
  36.     FW_Locale            fLocale;        // Locality of current run
  37.     long                fRefCount;        // Reference count
  38. };
  39.  
  40. //========================================================================================
  41. //    STRUCT FW_SPrivTextWriter
  42. //========================================================================================
  43.  
  44. struct FW_SPrivTextWriter
  45. {
  46.     FW_OTextRunWriter*     fWriter;
  47.     char*                fStart;            // Start of current run
  48.     char*                fLimit;            // One past last byte of current run
  49.     char*                fNext;            // Current position in run
  50.     FW_ByteCount        fBufferSum;        // Total bytes in previous buffers.
  51.     FW_Locale            fLocale;        // Locality of current run
  52.     long                fRefCount;        // Reference count
  53. };
  54.  
  55. #endif
  56.